package com.kaitian.demo.demo_boot_starter.doc;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * @author ：xietian
 * @version ：V1.0
 * @program ：demo
 * @date ：Created in 2022/4/11 14:12
 * @description ：Demo的MongoDB文档
 */
@Data
@Document("demo_doc")
public class DemoDoc implements Serializable {

    @Id
    private Long id;

    @Field("demo_text")
    private String demoText;

}